﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Threading;

namespace FileClient
{
    public partial class ClientView : Form
    {
        private ClientModel clientapi;

        public ClientView()
        {
            InitializeComponent();
            clientapi = new ClientModel();
        }

        private void btn_Start_Click(object sender, EventArgs e)
        {
            
            clientapi.sendfile();
            //clientapi.start();
        }

        private void btn_Login_Click(object sender, EventArgs e)
        {
            clientapi.Login();
        }

        private void btn_connect_Click(object sender, EventArgs e)
        {
            clientapi.connect("fnqlan.game-host.org");

        }

        private void btn_disconnect_Click(object sender, EventArgs e)
        {
            clientapi.disconnect();

        }


    }
}
